package com.dionysun.graphqlkickstart.config;

import com.dionysun.graphqlkickstart.extend.FdGraphQLObjectMapper;
import graphql.servlet.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author syl
 * @create 2021-01-28 15:18
 **/
@Configuration
public class MyGraphQlConfig {


    @Bean
    public GraphQLObjectMapper graphQLObjectMapper() {
        FdGraphQLObjectMapper.Builder builder = FdGraphQLObjectMapper.newBuilder2();
        return builder.build();
    }


}
